package org.cnc.explain.lifecycle.hookbean;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor;
import org.springframework.stereotype.Component;

/**
 * <p>
 * #TODO: desc
 * </p>
 *
 * @author zhiyong.tan
 * @since 2022-09-14
 */
@Component
public class HookDestructionAwareBeanPostProcessor implements DestructionAwareBeanPostProcessor {
	@Override
	public void postProcessBeforeDestruction(Object bean, String beanName) throws BeansException {
		if (PrintHelper.beanNameSatisfied(beanName)) {
			PrintHelper.printMsgWithStep("执行 DestructionAwareBeanPostProcessor#postProcessBeforeDestruction 回调");
		}


	}
}
